<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<div id="container">
    <p>这是一个文本插值{{myName}}</p>

    <a :[myhref]="url">链接</a>

    <myitem/>

</div>

<script src="https://unpkg.com/vue@next"></script>
<script type="text/javascript">

    const demoApp = {
        data(){
            return {
                myName: 'hello',
                myhref: 'href', //此处不能写成myHref, browsers will coerce attribute names into lowercase
                url: 'http://www.baidu.com'

            }
        },
        mounted(){

        },
        methods:{

        }

    }

    Vue.createApp(demoApp)
        .component('myitem',{ //此处不能写成myItem
            template:'<div>自定义控件</div>'
        })
        .mount('#container')
</script>

</body>
</html>
